<?php
declare(strict_types=1);

namespace ImiApp\ApiServer\Backend\Validate;

use Phpben\Imi\Validate\Validate;

class SubjValidate extends Validate
{
    protected $rule = [
		'id' => 'require|integer',
		'question' => 'require',
		'answer' => 'require',
		'a' => 'require',
		'b' => 'require',
		'c' => 'require',
		'd' => 'require',
    ];

    protected $message = [
    ];

    protected $scene = [
        'create' => ['question', 'answer', 'a', 'b', 'c', 'd', ],
        'update' => ['id', 'question', 'answer', 'a', 'b', 'c', 'd', ],
                
    ];
}
